package com.ran.java_gobang.game.request;

import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ran
 * Date: 2025-08-31
 * Time: 17:26
 */
@Data
public class UserRegisterRequest {
    @NotNull(message = "用户名不能为空")
    @Length(min = 3,max = 20,message = "注册的用户名长度应该在[3,20]之间")
    private String userName;

    @Length(min = 3,max = 20,message = "注册的密码长度应该在[3,20]之间")
    @NotNull(message = "密码不能为空")
    private String password;
    private String message;
    private boolean flag;

}
